package org.jeecg.common.modules.order.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.modules.order.entity.OrderInfoLog;
import org.jeecg.common.util.enums.OrderInfoLogTypeEnum;

/**
 * @Description: order
 * @Author: jeecg-boot
 * @Date:   2020-08-26
 * @Version: V1.0
 */
public interface IOrderInfoLogService extends IService<OrderInfoLog> {

    /**
     * 添加日志
     * @param orderId
     * @param type
     * @param args
     */
    void addLog(String orderId, OrderInfoLogTypeEnum type,String... args);

    /**
     * 获取订单事件日志
     * @param orderInfoId
     * @return
     */
    List<OrderInfoLog> getLogs(String orderInfoId);
}
